# credit to the user in the source link
headers = {'User-Agent': 'My User Agent 1.0', 'From': '[email protected]'}
response = requests.get(url, headers = headers)
# use authentic mozilla or chrome user - agent strings if this doesn't work
# NOTE: this solved a problem I had. It may not be yours